export default {
  methods: {
    fullscreen() {
      this.isfullscreen = !this.isfullscreen
      if (this.isfullscreen) {
        this.$set(this.tabsList[this.tabsList.length - 1], 'icon', 'fnfont fn-a-lujing3210')
        this.$set(this.tabsList[this.tabsList.length - 1], 'label', '退出全屏')
        this.setFullSerrcenHeight(null, 125)
      } else {
        this.$set(this.tabsList[this.tabsList.length - 1], 'icon', 'fnfont fn-a-lujing3209')
        this.$set(this.tabsList[this.tabsList.length - 1], 'label', '全屏')
        this.setFullSerrcenHeight(this.height)
      }
    },
    setFullSerrcenHeight(v, c = 125) {
      if (v) {
        this.tableHeight = v
      } else {
        this.tableHeight = document.getElementById('app').scrollHeight - c
      }
    }
  }
}
